package com.itheima.Enum;

import lombok.Getter;

@Getter
public enum CementStatusEnum {
    ENABLE(0,"启用"),
    DISABLE(1,"禁用");
    private Integer status;
    private String desc;
    CementStatusEnum(Integer status, String desc){
        this.desc = desc;
        this.status = status;
    }
    public static CementStatusEnum getStatus (Integer status){
            for (CementStatusEnum item: CementStatusEnum.values()){
                if (item.getStatus().equals(status)) {
                    return item;
                }
            }
        return null;
    }



}
